package com.xh.bussiness.system.dao;

import com.xh.bussiness.system.model.Group;
import com.xh.bussiness.system.model.GroupUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户与组关系表 Mapper 接口
 * </p>
 *
 * @author Pitt
 * @since 2020-11-23
 */
public interface GroupUserMapper extends BaseMapper<GroupUser> {
    boolean deleteByUserId(@Param("userId") String userId,@Param("groupId") String groupId);

    List<Group> queryUserGroupByUserId(@Param("userId")String userId);

    List<Group> queryGroupByUserId(@Param("userId")String userId);
}
